package com.zmn.plat.common.dto.channel;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author tanbiao
 * @description
 * @since 2019/11/21 9:42
 * @modifier
 **/
@Data
public class ChannelCityRatioDIO  implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 渠道ID，不能为空
     */
    @NotNull(message = "channelId不能为空")
    @Positive(message = "channelId必须为大于0的正整数")
    private Integer channelId;
    /**
     * 城市ID，不能为空
     */
    @NotNull(message = "cityId不能为空")
    @Positive(message = "cityId必须为大于0的正整数")
    private Integer cityId;
    /**
     * 产品ID,不能为空
     */
    @NotNull(message = "productId不能为空")
    @Positive(message = "productId必须为大于0的正整数")
    private Integer productId;
    /**
     * 类型：1.保外，2.保内
     */
    @NotNull(message = "type不能为空")
    @Positive(message = "type必须为大于0的正整数")
    private  Integer type;
}
